<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: lukman
  Date: 6/24/11
  Time: 11:54 AM
-->
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<head>
    <title>Simple JSF Facelets page</title>
    <link rel="stylesheet" type="text/css" href="#{request.contextPath}/resources/css/themes/main1.css"/>
</head>

<body>
<ui:composition template="/resources/template/template.xhtml">
    <ui:define name="sidecontent">
        <ui:include src="leftpanel.xhtml"/>
    </ui:define>
    <ui:define name="maincontent">
        <p:fieldset toggleable="true" legend="Intraoperation Record">
            <h:form>
                <h:panelGrid id="grid" columns="2">
                    <h:panelGroup>
                        <h:panelGrid id="grid1" columns="2">
                            <h:outputText value="#{msgs.intraoperationdate}"/>
                            <p:calendar navigator="true" pattern="yyyy-MM-dd"
                                        value="#{recordBean.record.intraOperationRecord.intraOpDate}" id="intraOpDate"
                                        requiredMessage="Enter Intra Operation Date" effect="slide" required="true"/>


                            <h:outputText value="#{msgs.anasthetist}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.anasthetist}" id="anasthetist"
                                         requiredMessage="Enter anasthetist Name" required="true"/>

                            <h:outputText value="#{msgs.surgeon}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.surgeon}" id="surgeon"
                                         requiredMessage="Enter surgeon Name" required="true"/>

                            <h:outputText value="#{msgs.operationPerformed}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.operationPerformed}"
                                         id="operationPerformed"
                                         requiredMessage="Enter operation Performed" required="true"/>

                            <h:outputText value="#{msgs.localRegionalTechnique}"/>
                            <p:inputTextarea cols="18" maxHeight="50"
                                             value="#{recordBean.record.intraOperationRecord.localRegionalTechnique}"
                                             id="localRegionalTechnique"
                                             requiredMessage="Enter local RegionalTechnique" required="true"/>

                            <h:outputText value="#{msgs.comment}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.comment}" id="comment"
                                         requiredMessage="Enter comment" required="true"/>

                            <h:outputText value="#{msgs.estimatedLosses}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.estimatedLosses}"
                                         id="estimatedLosses"
                                         requiredMessage="Enter estimatedLosses" required="true"/>

                            <h:outputText value="#{msgs.hr}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.hr}" id="hr"
                                         requiredMessage="Enter hr" required="true"/>

                            <h:outputText value="#{msgs.spo2}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.spo2}" id="spo2"
                                         requiredMessage="Enter anasthetist Name" required="true"/>

                            <h:outputText value="#{msgs.fi02}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.fi02}" id="fi02"
                                         requiredMessage="Enter fi02" required="true"/>

                            <h:outputText value="#{msgs.operationType}"/>
                            <p:inputText value="#{recordBean.record.intraOperationRecord.operationType}"
                                         id="operationType"
                                         requiredMessage="Enter operation Type" required="true"/>
                        </h:panelGrid>
                    </h:panelGroup>
                </h:panelGrid>
            </h:form>
        </p:fieldset>

    </ui:define>
</ui:composition>
</body>

</html>